package com.bhs.sansong.bean;

import com.contrarywind.interfaces.IPickerViewData;

public class TimeBean implements IPickerViewData {
    private String time;
    private String formattingTime;
    private int type;

    public TimeBean(String time, String formattingTime, int type) {
        this.time = time;
        this.formattingTime = formattingTime;
        this.type = type;
    }

    public TimeBean(String time, int type) {
        this.time = time;
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getFormattingTime() {
        return formattingTime;
    }

    public void setFormattingTime(String formattingTime) {
        this.formattingTime = formattingTime;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String getPickerViewText() {
        if (type == 2) {
            return time + "点";
        } else if (type == 3) {
            return time + "分";
        } else {
            return time;
        }

    }
}

